//
//  ZLButton.swift
//  新浪微博
//
//  Created by 朱玉龙 on 9/22/16.
//  Copyright © 2016 朱玉龙. All rights reserved.
//

import UIKit

class ZLButton: UIButton {

  class  func  button() -> UIButton {
    
        let button = UIButton(frame: CGRect(x: 0, y: 0, width:UIScreen.main.bounds.width, height: 36))
        
        button.setTitle("搜一搜看看有什么惊喜", for: .normal)
        
        button.setTitleColor(UIColor.darkGray, for: .normal)
        
        button.backgroundColor = UIColor.gray
        
        button.setImage(#imageLiteral(resourceName: "tabbar_discover"), for: .normal)
        
        button.contentHorizontalAlignment = UIControlContentHorizontalAlignment.left
        
        button.imageEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0)
        
        button.titleEdgeInsets = UIEdgeInsetsMake(0, 20, 0, 0)
        
        button.cornerRadius = 17

        return button
    }
    
    
}
